package com.opencloud.iot.provider.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.opencloud.iot.client.model.entity.IotSleepObserver;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface IotSleepObserverMapper extends BaseMapper<IotSleepObserver> {
        /**
         * @param watchmac
         * @param startTime
         * @param endTime
         * @param counts
         * @return
         */
        List<IotSleepObserver> getSleepObserverByTimeAndMac(@Param("watchmac")String watchmac, @Param("startTime")Long startTime, @Param("endTime")Long endTime, @Param("counts")Integer counts);
}
